import { RouteRecordRaw } from 'vue-router';

const children: RouteRecordRaw[] = [];
const files = require.context('.', false, /\.ts$/);

files.keys().forEach((key) => {
  if (key === './index.ts') return;
  children.push(...files(key).default);
});

export default children;
